package com.biscuit.page.basicservice.model.entities.mysql;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author biscuit
 * @createTime 2024/6/29 17:22
 */
@Getter
@Setter
@TableName(value = "sys_basic_message")
public class SysBasicMessage extends BaseEntity {

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "user_u_id")
    private String userUid;

    /**
     * 消息类型，1文本，2图片，3语音，4视频，5文件
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 是否合法，0不合法，1合法
     */
    @TableField(value = "is_lawful")
    private Integer isLawful;

    /**
     * 是否撤回，0未撤回，1已撤回
     */
    @TableField(value = "is_withdraw")
    private Integer isWithdraw;

    @TableField(value = "publish_time")
    private LocalDateTime publishTime;

}
